package com.cjc.sport.entity;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;

/**
 * 课程分类对象
 */
public class Category {
    /**
     * 课程id
     */
    @NotBlank
    @Length(min = 1, max = 40)
    private String categoryId;

    /**
     * 课程分类名称
     */
    @NotBlank
    @Length(min = 1, max = 10)
    private String categoryName;

    /**
     * 创建日期
     */
    private Date createDate;

    /**
     * 修改日期
     */
    private Date updateDate;

    public Category() {
    }

    public Category(String categoryId, String categoryName) {
        this.categoryId = categoryId;
        this.categoryName = categoryName;
    }

    /**
     * get
     *
     * @return get
     */
    public String getCategoryId() {
        return categoryId;
    }

    /**
     * set
     *
     * @param categoryId set
     */
    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * get
     *
     * @return get
     */
    public String getCategoryName() {
        return categoryName;
    }

    /**
     * set
     *
     * @param categoryName set
     */
    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    /**
     * get
     *
     * @return get
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * set
     *
     * @param createDate set
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * get
     *
     * @return get
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * set
     *
     * @param updateDate set
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}